//
//  KFCategoryModel.h
//  KafeeSale
//
//  Created by Liboom on 2025/6/9.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class KFProductModel;
@class KFDishCookList;
@class KFDishSpecList;
@interface KFCategoryModel : NSObject

@property (nonatomic, copy) NSString *categoryId;
@property (nonatomic, copy) NSString *categoryName;
@property (nonatomic, strong) NSArray <KFProductModel*>*goods; // 该分类下的商品

@end
@interface KFProductModel : NSObject
- (CGFloat)calculateCurrentPrice;
@property (nonatomic, copy) NSString *tid;
@property (nonatomic, assign) NSInteger categoryId;
@property (nonatomic, copy) NSString *categoryName;
@property (nonatomic, copy) NSString *createTime;
@property (nonatomic, copy) NSString *desc;
@property (nonatomic, assign) NSInteger flagTakeOff;
@property (nonatomic, copy) NSString *mainImgs;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, assign) CGFloat price;
@property (nonatomic, copy) NSString *remark;
@property (nonatomic, copy) NSString *bean;
@property (nonatomic, copy) NSString *localRemark;
@property (nonatomic, assign) NSInteger state;
@property (nonatomic, copy) NSString *updateTime;
@property(nonatomic, assign) NSInteger choseCount;
@property (nonatomic, strong) NSArray<KFDishCookList *> *cooksList;
@property (nonatomic, strong) NSArray<KFDishSpecList *> *specList;
@property (nonatomic, strong) NSArray<KFDishSpecList *> *selectedSpecs;
@property (nonatomic, strong) NSArray<NSDictionary *> *selectedPractices;
@property (nonatomic, strong) NSArray *selectedBeans;
@property (nonatomic, strong) NSArray *practiceTitles;

@end
@interface KFDishCookList: NSObject
@property (nonatomic, copy) NSString *cooksData;
@property (nonatomic, copy) NSString *cooksTitle;
@property (nonatomic, copy) NSString *createTime;
@property (nonatomic, assign) NSInteger goodsId;
@property (nonatomic, copy) NSString *tid;
@property (nonatomic, copy) NSString *remark;
@property (nonatomic, copy) NSString *updateTime;
@end

@interface KFDishSpecList: NSObject
@property (nonatomic, copy) NSString *createTime;
@property (nonatomic, assign) NSInteger goodsId;
@property (nonatomic, copy) NSString *tid;
@property (nonatomic, copy) NSString *remark;
@property (nonatomic, copy) NSString *specName;
@property (nonatomic, assign) CGFloat specPrice;
@property (nonatomic, copy) NSString *updateTime;
@property (nonatomic, assign) NSInteger weight;
@end

NS_ASSUME_NONNULL_END
